package com.ocom.common.vo.payconfig;




import com.fasterxml.jackson.annotation.JsonProperty;
import com.ocom.common.vo.ugcapi.GzhUserInfo;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Data
public class UpdatecardStateVo implements Serializable {

    private static final long serialVersionUID = -142786709437940916L;
    @NotNull(message = "comId 不能為空")
    private Long comId;
    @NotNull(message = "pId 不能為空")
    @JsonProperty("pId")
    private Long pId;
    @NotEmpty(message = "cardNo 不能為空")
    private String cardNo;
    @NotEmpty(message = "cardState 不能為空")
    private Integer cardState;
    @NotNull(message = "accTypeId 不能為空")
    private Long accTypeId;
    @NotEmpty(message = "user 不能為空")
    private String user="";

    @NotEmpty(message = "user 不能為空")
    private String accountNo;

    private GzhUserInfo userInfo;

    @Override
    public String toString() {
        return "UpdatecardStateVo{" +
                "comId=" + comId +
                ", pId=" + pId +
                ", cardNo='" + cardNo + '\'' +
                ", cardState=" + cardState +
                ", accTypeId=" + accTypeId +
                ", user='" + user + '\'' +
                ", accountNo='" + accountNo + '\'' +
                '}';
    }
}
